// 一、视频
import axios from '@/utils/request'

// 发表评论
export const publishcomment = (id, data) => {
    return axios({
        url: `/api/postcomment/${id}`,
        data,
        method: 'post'
    })
}

// 评论列表
export const commentList = (id, params) => {
    return axios({
        url: `/api/getcomments/${id}`,
        params
    })
}